﻿
@Html.DevExpress().ReportViewer(settings =>
{
    settings.Name = "reportViewer1";
    settings.Report = Html.ViewContext.Controller.ViewData["rpt"] as XtraReport;
          settings.Width = System.Web.UI.WebControls.Unit.Percentage(99);
          settings.PrintUsingAdobePlugIn = false;
         // settings.Report.PaperKind = System.Drawing.Printing.PaperKind.A4;
         
      //  settings.SettingsSplitter.SidePaneVisible = false;
          settings.ClientSideEvents.BeginCallback = "function(s,e){OnBeginCallback(s,e)}";
          settings.CallbackRouteValues = new { Controller = "QueryAllowancePay", Action = "ReportViewerPartial" };
       // settings.ExportRouteValues = new { Controller = "DataBinding", Action = "DocumentViewerExportTo", ReportID = Model.ReportID };
}).GetHtml()
